@echo off
set dest=F:\homelesspartners\%date:~6,4%%date:~3,2%%date:~0,2%
set source=C:\workspace\homelesspartners
set foldercmd=xcopy /s /c /d /e /h /i /r /y
set filecmd=copy /Y

echo ### Running backup script for homeless partners...

echo ### Backing up "%source%\src"...
%foldercmd% "%source%\src" "%dest%\src"

echo ### Backing up "%source%\test"...
%foldercmd% "%source%\test" "%dest%\test"

echo ### Backing up "%source%\web"...
%foldercmd% "%source%\web" "%dest%\web"

echo ### Backing up "%source%\lib"...
%foldercmd% "%source%\lib" "%dest%\lib"

echo ### Backing up "%source%\doc"...
%foldercmd% "%source%\doc" "%dest%\doc"

echo ### Backing up "%source%\tomcat"...
%foldercmd% "%source%\tomcat" "%dest%\tomcat"

echo ### Backing up "%source%\files"...
%filecmd% "%source%\*.*" "%dest%"

echo Backup Complete!
@pause
